<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Tìm nâng cao</title>
<link href="/htqlmba/libraries/css/capnhatdv.css" type="text/css" rel="stylesheet">
         <script type="text/javascript" src="/htqlmba/search/v_javascript_tnc.js"></script>
</head>

<body>

<?php
include_once($_SERVER['DOCUMENT_ROOT'] . "/htqlmba/ketnoiCSDL.php");
include_once($_SERVER['DOCUMENT_ROOT'] . '/htqlmba/controls/c_timkiem.php');
session_start();
?>

<form name="timnangcao" method="POST" >

<table width="486" border="0" align="center" class="TableField2" cellpadding="5" cellspacing="0">
  <tr>
    <td colspan="2" class="TableHeader1"><div align="center"><span><span>&equiv;</span>T&igrave;m ki&#7871;m n&acirc;ng cao</span></div></td>
  </tr>
  <tr>
    <td width="109" height="39"><div align="left"><strong>C&ocirc;ng su&#7845;t: 
      &nbsp;</strong></div></td>
    <td width="367"><div align="left">
<input id="txtcongsuat" name="txtcongsuat" type="text" size="45" />      
(KVA)</div></td>
  </tr>
  <tr>
    <td height="41"><div align="left"><strong>&#272;&#417;n v&#7883; &#273;i&#7879;n l&#7921;c: </strong></div></td>
    <td><div align="left">
      <select name="cbodonvi" id="cbodonvi" >
        <?php	
	$sql="select * from don_vi where MA_DON_VI='".$_SESSION['nmadv']."'";		
		$result=mysql_query($sql,$link);
		$r1="";
		$r2="";
		while ($rows = mysql_fetch_array($result)){
		$r1.=$rows["MA_DON_VI"];
		$r2.=$rows["TEN_DON_VI"];		
		}
		echo "<option value='".$r1."'>".$r2."</option>"; ?>
      </select>
    </div></td>
  </tr>
  <tr>
    <td height="34"><div align="left"><strong>T&ecirc;n tr&#7841;m: 
    &nbsp;&nbsp;</strong></div></td>
    <td><div align="left">
      <select name="cbotram" id="cbotram">
        <option value=""></option>
        <?php
		$sql="select * from tram order by TEN_TRAM";		
		$result=mysql_query($sql,$link);
		while ($rows = mysql_fetch_array($result)){
		$r1=$rows["MA_TRAM"];
		$r2=$rows["TEN_TRAM"];
		echo "<option value='".$r1."'>".$r2."</option>";
		}
	?>
      </select>
    </div></td>
  </tr>
  <tr>
    <td height="43"><div align="left"><strong>T&igrave;nh tr&#7841;ng: </strong>&nbsp;&nbsp;&nbsp;</div></td>
    <td><p align="left">
        <select name="cbotinhtrang" id="cbotinhtrang">
          <option value=""></option>
          <?php
		$sql="select distinct TEN_TINH_TRANG_MAY from tinh_trang_may order by TEN_TINH_TRANG_MAY";		
		$result=mysql_query($sql,$link);
		while ($rows = mysql_fetch_array($result)){
		$r1=$rows["TEN_TINH_TRANG_MAY"];
		echo "<option value='".$r1."'>".$r1."</option>";
		
		}
	?>
        </select>
      </p>
        <p align="center"></p></td>
  </tr>
  <tr>
    <td height="43" colspan="2"><div align="center">
      <input name="btnSearchnangcao2" type="button" value="Tìm kiếm" onclick="timNC()" />
    </div></td>
  </tr>
</table>
 <br>
           
            <div id="xuathienchonay"> </div>      

</body>
</html>
